package chapter_six.P78.builder;

import chapter_six.P78.bean.Actor;

/**
 * Data time:2021/9/18 15:23
 * StudentID:2019112118
 * Author:hgw
 * Description:游戏建造者，充当抽象建造者
 */
public abstract class ActorBuilder {
    protected Actor actor = new Actor();

    public abstract void buildType();
    public abstract void buildSex();
    public abstract void buildFace();
    public abstract void buildCostume();
    public abstract void buildHairstyle();

    //工厂方法，返回一个完整的游戏角色对象
    public Actor createActor() {
        return actor;
    }
}
